package com.bookseek.xreader.po;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

@Entity(nameInDb = "t_meta")
public class TMetaPo {
    @Id(autoincrement = true)
    @Property(nameInDb = "id")
    @Unique
    public Long id;//主键id
    public String resource;
    public String filename;
    public String filelength;
    public Integer no;//序号
    public Integer btype;//1=诗词 2=典籍
    public Integer plat;//1=有道云笔记 2=bookseek 3=git
    @Index(name = "t_meta_bsign__index")
    public String bsign;//resource md5摘要
    public Integer dflag = 0;//数据加载状态 1=成功

    public Long bmax;//最大id

    public Long bmin;//最小id

    public String bids;//集合

    public Integer bcount;//总数

    public String bkey;

    public TMetaPo(){

    }



    @Generated(hash = 528102053)
    public TMetaPo(Long id, String resource, String filename, String filelength,
            Integer no, Integer btype, Integer plat, String bsign, Integer dflag,
            Long bmax, Long bmin, String bids, Integer bcount, String bkey) {
        this.id = id;
        this.resource = resource;
        this.filename = filename;
        this.filelength = filelength;
        this.no = no;
        this.btype = btype;
        this.plat = plat;
        this.bsign = bsign;
        this.dflag = dflag;
        this.bmax = bmax;
        this.bmin = bmin;
        this.bids = bids;
        this.bcount = bcount;
        this.bkey = bkey;
    }



    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getResource() {
        return resource;
    }

    public void setResource(String resource) {
        this.resource = resource;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getFilelength() {
        return filelength;
    }

    public void setFilelength(String filelength) {
        this.filelength = filelength;
    }

    public Integer getNo() {
        return no;
    }

    public void setNo(Integer no) {
        this.no = no;
    }

    public Integer getBtype() {
        return btype;
    }

    public void setBtype(Integer btype) {
        this.btype = btype;
    }

    public Integer getPlat() {
        return plat;
    }

    public void setPlat(Integer plat) {
        this.plat = plat;
    }

    public String getBsign() {
        return bsign;
    }

    public void setBsign(String bsign) {
        this.bsign = bsign;
    }

    public Integer getDflag() {
        return dflag;
    }

    public void setDflag(Integer dflag) {
        this.dflag = dflag;
    }

    public Long getBmax() {
        return bmax;
    }

    public void setBmax(Long bmax) {
        this.bmax = bmax;
    }

    public Long getBmin() {
        return bmin;
    }

    public void setBmin(Long bmin) {
        this.bmin = bmin;
    }

    public String getBids() {
        return bids;
    }

    public void setBids(String bids) {
        this.bids = bids;
    }

    public Integer getBcount() {
        return bcount;
    }

    public void setBcount(Integer bcount) {
        this.bcount = bcount;
    }

    public String getBkey() {
        return bkey;
    }

    public void setBkey(String bkey) {
        this.bkey = bkey;
    }
}
